{% extends "base.html" %}
{% block title_base %}注册 | {{ block.super }}{% endblock %}
{% block content_base %}
{% if form %}
{% if form.errors %}
<p style="color: red;">
	注册失败,请检查下面的错误
</p>
{% endif %}
<form action="" method="post">
	{{ form.as_p }}
	<input type="submit" value="注册">
</form>
{% endif %}
{% endblock %}